package com.web.quartz.job;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

import com.web.common.document.api.DocumentInfoApi;
import com.web.common.security.FeignInnerEntity;

@DisallowConcurrentExecution
public class AutoCancelShareDocJob extends QuartzJobBean {
	
	@Autowired
	private DocumentInfoApi documentInfoApi;

	@Override
	protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
		documentInfoApi.autoCancelShare(FeignInnerEntity.HTTP_INNER_VALUE);
	}

}
